<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath}/css/style_actionerror.css" type="text/css"
	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/style_change.css" type="text/css"
	rel="stylesheet" />
</head>
<body>
     <div style="left: 40%;position: absolute;">
     <h1>1.1 blog 个人资料修改</h1>
     <span><input type="button" value="个人资料" onclick="show();"/></span>&nbsp;
     <span><input type="button" value="基本修改" onclick="base();"/></span>&nbsp;
     <span><input type="button" value="密码修改" onclick="password();"/></span>
     </div>
     <br/><br/>
     <!-- 个人资料显示 -->
      <span class="formFieldError"> 
        <s:actionerror />
	  </span>
     <div class="show" id="show">
     <span>
     <s:text name="name"/>${uv.blogName}
     </span>
     <br/><br/>
     <span>
     <s:text name="email"/>${uv.blogEmail}
     </span>
     <br/><br/>
     <span>
    <s:text name="description"/>${uv.blogDescription}
     </span>
     <br/><br/>
    <s:text name="lasttime"/>${lastTime}
     </div>
     <!-- 基本资料修改 -->
      <div class="base" id="base">
	  <span class="formFieldError"> 
        <s:actionerror />
	  </span>
        <s:form action="changeBase.action" method="post">
         <s:text name="name"/>
	<s:textfield name="uv.blogName" />
		<span class="formFieldError"> 
			*<s:fielderror fieldName="uv.blogName" />
		</span>
		<br/><br/>
		
		<s:text name="description"/>
	<s:textarea name="uv.blogDescription"/>
		<span class="formFieldError"> 
			<s:fielderror fieldName="uv.blogDescription" />
		</span>
	
		<br/><br/>
	 <s:hidden name="uv.buid"/>
     <input type="submit" value="修改"/>&nbsp;&nbsp;<input type="reset" value="重置"/>   
        
        </s:form>
        
       </div>
   <!-- 密码修改 -->
  <div class="password" id="password">
  
  <s:form action="chPassword" method="post"> 
  	<s:text name="changepassword"/>
	<s:password name="passwords" />
		<span class="formFieldError"> 
			*<s:fielderror  fieldName="passwords" />
		</span>
		
		<br/><br/>
  <s:text name="passwords"/>
	<s:password name="uv.blogPassword" />
		<span class="formFieldError"> 
			*<s:fielderror  fieldName="uv.blogPassword" />
		</span>
		<br/><br/>
	
		 <s:hidden name="uv.buid"/>
		 <input type="submit" value="修改" onclick="return change();"/>&nbsp;&nbsp;<input type="reset" value="重置"/>   
		</s:form>
  </div>
  <script src="${pageContext.request.contextPath}/js/change.js" type="text/javascript"></script>

</body>
</html>